package com.wanwen.dto;

/**
 * @author QINKUI
 * 模块业务类
 */
public class ModuleDto {
	
	private int id;//节点唯一标识
	private int parentId;//父节点
	private String title;//节点标题
	private String icon;//小图标
	private String href;//点击节点弹出新窗口对应的 url
	private boolean checked;//节点是否初始为选中状态（如果开启复选框的话），默认 false
	public ModuleDto(int id, int parentId, String title, String icon, String href, boolean checked) {
		super();
		this.id = id;
		this.parentId = parentId;
		this.title = title;
		this.icon = icon;
		this.href = href;
		this.checked = checked;
	}
	public ModuleDto() {
		super();
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getHref() {
		return href;
	}
	public void setHref(String href) {
		this.href = href;
	}
	public boolean isChecked() {
		return checked;
	}
	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	@Override
	public String toString() {
		return "ModuleDto [id=" + id + ", parentId=" + parentId + ", title=" + title + ", icon=" + icon + ", href="
				+ href + ", checked=" + checked + "]";
	}
	
}
